<!-- Original:  Michael Tartaglia (stonedstan@hotmail.com) -->
<!-- Web Site:  http://www.geocities.com/SiliconValley/Horizon/5235 -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
color=new Array("0","8","F");
speed=250;
document.bgColor="FFFFFF";
bg=new Array("FFFFFF","FFFFFF","FFFFFF");
function begin() {
document.form.col1.value=" X "; document.form.col2.value=" X ";
document.form.col3.value=" X "; i=0; roll(speed);
}
function roll(speedB) {
if (document.form.col1.value==" X ") {
document.form.c1.value=document.form.b1.value;
document.form.b1.value=document.form.a1.value;
document.form.a1.value=
color[Math.round(Math.random()*10)%3]+
color[Math.round(Math.random()*10)%3];
}
if (document.form.col2.value==" X ") {
document.form.c2.value=document.form.b2.value;
document.form.b2.value=document.form.a2.value;
document.form.a2.value=
color[Math.round(Math.random()*10)%3]+
color[Math.round(Math.random()*10)%3];
}
if (document.form.col3.value==" X ") {
document.form.c3.value=document.form.b3.value;
document.form.b3.value=document.form.a3.value;
document.form.a3.value=
color[Math.round(Math.random()*10)%3]+
color[Math.round(Math.random()*10)%3];
}
setTimeout("roll("+speedB+")",speedB);
}
function stop(col) {
if (col==1) {document.form.col1.value="   ";i++;}
if (col==2) {document.form.col2.value="   ";i++;}
if (col==3) {document.form.col3.value="   ";i++;}
if (i==3) {
bg[0]=document.form.a1.value+
document.form.a2.value+
document.form.a3.value;
bg[1]=document.form.b1.value+
document.form.b2.value+
document.form.b3.value;
bg[2]=document.form.c1.value+
document.form.c2.value+
document.form.c3.value;
speedB=500000;roll(speedB);
   }
}
function view(letter) {
document.bgColor=bg[letter];
document.form.color.value="#"+bg[letter];
}
// End -->
</script>

<form name="form">
    <div align="center"><center><table border="0" cellpadding="2">
        <tr>
            <td align="center"><input type="text" size="2"
            name="a1" value=" " onfocus="this.blur()"> <input
            type="text" size="2" name="a2" value=" "
            onfocus="this.blur()"> <input type="text" size="2"
            name="a3" value=" " onfocus="this.blur()"> <input
            type="button" value="" onclick="view(0)"><br>
            <input type="text" size="2" name="b1" value=" "
            onfocus="this.blur()"> <input type="text" size="2"
            name="b2" value=" " onfocus="this.blur()"> <input
            type="text" size="2" name="b3" value=" "
            onfocus="this.blur()"> <input type="button"
            value="" onclick="view(1)"><br>
            <input type="text" size="2" name="c1" value=" "
            onfocus="this.blur()"> <input type="text" size="2"
            name="c2" value=" " onfocus="this.blur()"> <input
            type="text" size="2" name="c3" value=" "
            onfocus="this.blur()"> <input type="button"
            value="" onclick="view(2)"><br>
            <input type="button" name="col1" value=" X "
            onclick="stop(1)"> <input type="button" name="col2"
            value=" X " onclick="stop(2)"> <input type="button"
            name="col3" value=" X " onclick="stop(3)"> </td>
            <td align="center"><input type="button"
            value=" " onclick="begin()"><table
            border="1" cellspacing="0" bgcolor="#FFFFFF">
                <tr>
                    <td align="center"><font color="#FF00FF"><strong>&quot;X&quot;
                       </strong></font><p><font
                    color="#FF00FF"><strong>BG Color =</strong> <input
                    type="text" size="7" name="color"
                    value="#FFFFFF"></font> </p>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
    </table>
    </center></div>
</form>

<p align="center"><a href="http://www.manayr.net/"><font
color="#008080" size="3" face="arial, helvetica"><strong>Manayr.Net</strong></font></a><font
color="#008080"><strong> </strong></font></p>

<p><!-- Script Size:  3.67 KB  --> </p>
